<#include "/admin/common/_layout.html"/>
<@layout>
<table class="table table-striped table-bordered table-condensed">
    <tbody>
    <tr align="center">
        <th>
            类型
            <input type="text" class="input-medium search-query" value="" name="filter_LIKES_name">
            <button type="button" onclick="search()" class="btn btn-small">
                <i class="icon-search"></i>
                搜索
            </button>
            <a class="btn btn-small right" href="user/add">添加用户</a>
        </th>
    </tr>
    </tbody>
</table>

<table class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>#</th>
        <th>
            <a href="javascript:sort('name')">用户名</a>
        </th>
        <th>
            <a href="javascript:sort('account')">账号</a>
        </th>
        <th>
            <a href="javascript:sort('memo')">备注</a>
        </th>

        <th>操作</th>
    </tr>
    </thead>
    <tbody>


    <#list userPage.getList() as x>
        <tr>
            <td>${x.id}</td>
            <td>${x.name}</td>
            <td>${x.account}</td>
            <td>${x.memo}</td>
            <td>
                <a href="user/delete/${x.id}">删除</a>
                <a href="user/edit/${x.id}">修改</a>
            </td>
        </tr>
    </#list>
    </tbody>
</table>

<#include "/admin/common/_paginate.html" />
<@paginate currentPage=userPage.pageNumber totalPage=userPage.totalPage actionUrl="/admin/user/" />
<hr/>
</@layout>





